package com.zhuangjie.order.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 订单明细表
 * </p>
 *
 * @author zhuangjie
 * @since 2023-11-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order_detail")
@ApiModel(value = "OrderDetail对象", description = "订单明细表")
public class OrderDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "订单号")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "菜品表_商品id")
    @TableField("dish_id")
    private Long dishId;

    @ApiModelProperty(value = "商品名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商品图片路径")
    @TableField("image")
    private String image;

    @ApiModelProperty(value = "菜品口味")
    @TableField("dish_flavor")
    private String dishFlavor;

    @TableField("appreciation")
    private BigDecimal appreciation;

    @ApiModelProperty(value = "规格单价")
    @TableField("spec_price")
    private BigDecimal specPrice;

    @ApiModelProperty(value = "商品数量")
    @TableField("count")
    private Integer count;


}
